package com.ruoyi.nongjt.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 检查记录对象 inspection_record
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class InspectionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 检查部门 */
    @Excel(name = "检查部门")
    private String inspectionDepartment;

    /** 检查人员 */
    @Excel(name = "检查人员")
    private String inspector;

    /** 生产主体 */
    @Excel(name = "生产主体")
    private String productionEntity;

    /** 法人名称 */
    @Excel(name = "法人名称")
    private String legalPersonName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区/县 */
    @Excel(name = "区/县")
    private String district;

    /** 镇/乡 */
    @Excel(name = "镇/乡")
    private String township;

    /** 检查地点 */
    @Excel(name = "检查地点")
    private String inspectionLocation;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 是否证照齐全 */
    @Excel(name = "是否证照齐全", readConverterExp = "qualified=合格,unqualified=不合格")
    private String licenseComplete;

    /** 是否使用禁用农药、兽药 */
    @Excel(name = "是否使用禁用农药、兽药", readConverterExp = "qualified=合格,unqualified=不合格")
    private String prohibitedDrugUsed;

    /** 检查意见 */
    @Excel(name = "检查意见")
    private String inspectionOpinion;

    /** 检查记录照片 */
    private String inspectionPhotos;

    /** 检查时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "检查时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionTime;

    /** 打印编号 */
    @Excel(name = "打印编号")
    private String printNumber;

    /** 合格证开具是否规范 */
    @Excel(name = "合格证开具是否规范", readConverterExp = "qualified=合格,unqualified=不合格")
    private String certificateCompliant;

    /** 是否使用禁限用农药 */
    @Excel(name = "是否使用禁限用农药", readConverterExp = "qualified=合格,unqualified=不合格")
    private String restrictedPesticideUsed;

    /** 删除标志 */
    private String delFlag;
}
